\section{exp --- Exponential}
\label{fn:exp}
\index{exp()}
\index{exponential}
\index{matrix!exponential}
\index{scalar!exponential}
\begin{rail}
Exp : 'exp' '(' ( Scalar | Matrix ) ')' ;
\end{rail}

\verb+exp+ returns $e$ raised to the power of the argument. If the
argument is a matrix, then an element-by-element operation is
performed. If the argument is complex value, $z$ , then the result is:

\[e^{\Re(z)} \cos(\Im(z)) +j e^{\Re(z)} \sin(\Im(z)) \]

\paragraph{example}
\index{example of exp()}
\index{exp()!example}
\begin{verbatim}
> exp(0)
        1
> exp(1)
     2.72
> exp(2)
     7.39
> exp(1)^2
     7.39
> exp(54)
 2.83e+23
> exp(3.2)
     24.5
> exp(-23)
 1.03e-10
> exp([0,1,2,5,34,2.543])
 matrix columns 1 thru 6
        1       2.72       7.39        148   5.83e+14       12.7 
\end{verbatim}

See also: Page~\pageref{fn:log} \verb+log()+,
Page~\pageref{fn:log10} \verb+log10()+.


\newpage







